var userModel = new Starcor.S67.MVC.Model("user_library");
userModel.query=function(params){
    NBOSS.ajax_v2(params,'/api/statistics/index.php?m=k1_c_1',function(data){
        if (data.code=='0'){
            userModel.data=data.data;
        }else{
            userModel.data = {};
            window.top.NBOSS.Alert('错误',data.reason);
        }
        userModel.disEvent('query', userModel.data);
    });
};

userModel.userDetail=function(params){
    NBOSS.ajax_v2(params,'/api/statistics/index.php?m=k1_c_2',function(data){
        if (data.code=='0'){
            userModel.userdata=data;
        }else{
            userModel.videodata = {};
            window.top.NBOSS.Alert('错误',data.reason);
        }
        userModel.disEvent('userDetail', userModel.userdata);
    });
};


	